<include file="Public:header" />
<form action="__ACTION__" method="post" id="myform">
<input name="data[id]" value="{$info.id}" type="hidden" />
<div class="pad-10">
<div id="div_setting_1" class="contentList pad-10">
<table width="100%"  class="table_form sync" >
  <tr>
    <th width="120">用户名：</th>
    <td>{$info.username} </td>
  </tr>
  <tr>
    <th><div class="bs-icon qq"></div></th>
    <td>
      <div class="bsite cf">
              <div class="bs-mid">
                <strong>腾讯QQ</strong>
                <div>绑定腾讯QQ帐号后，您便可使用腾讯QQ帐号登录网站</div>
              </div>
              <empty name="info.openid">
                <a class="bs-btn" href="http://crm.haifangzj.com/login/qq_login/"></a>
              <else />
                <a class="bs-btn unbind" href="javascript:void(0);"></a>
              </empty>
        </div>
    </td>
  </tr>
  <tr>
    <th><div class="bs-icon tencent"></div></th>
    <td>
      <div class="bs-mid">
      <strong>腾讯微博</strong>
      <div>绑定腾讯微博帐号后，您便可使用腾讯微博帐号登录网站</div>
    </div>
    </td>
  </tr>
  <tr>
    <th><div class="bs-icon t163"></div></th>
    <td><div class="bs-mid">
                <strong>网易微博</strong>
                <div>绑定网易微博帐号后，您便可使用网易微博帐号登录网站</div>
              </div></td>
  </tr>
  <tr class="last">
    <th><div class="bs-icon sina"></div></th>
    <td><div class="bs-mid">
                <strong>新浪微博</strong>
                <div>绑定新浪微博帐号后，您便可使用新浪微博帐号登录网站</div>
              </div></td>
  </tr>

</table>

</div>
</form>
</div>
</body>
</html>
<script type="text/javascript" src="/Public/Js/artDialog/jquery.artDialog.js?skin=default"></script>
<script type="text/javascript" src="/Public/Js/artDialog/plugins/iframeTools.js"></script>
<script type="text/javascript">
$(function(){
	$(".unbind").click(function(){
    art.dialog({
    content: '解除绑定后，将失去通过该账号登陆功能，是否确定与QQ解除绑定？',
    ok: function () {
      unbind();
      return true;
    },
    cancelVal: '取消',
    cancel: true
  });
  })
})

function unbind(){
  jQuery.post('__URL__/binding',encodeURI('act=unbind'),success,'json');
  function success(data){
    if(data.status==1){
      window.top.art.dialog({id:'TNCICC',content: data.info,time: 1,icon:'succeed'});
    }else{
      window.top.art.dialog({id:'TNCICC',content: data.info,time: 1,icon:'warning'});
    }
    setTimeout(function(){window.location.reload();closeWin(1000);},1000);
  }
}
</script>